package com.zyy.smartcity1129.movecar;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import androidx.annotation.Nullable;

/**
 * @ClassName: MoveCarMySQLiteOpenHelper$
 * @Description: 作用
 * @Author: letquit
 * @CreateDate: 12/11/2021$
 * @Version: 1.0
 */
public class MoveCarMySQLiteOpenHelper extends SQLiteOpenHelper {
    public MoveCarMySQLiteOpenHelper(@Nullable Context context, @Nullable String name, @Nullable SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        String sql = "create table MoveCar(id integer primary key not null, carnum varchar(10), phone varchar(20), address varchar)";
        db.execSQL(sql);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
